﻿@{
    ViewBag.Title = "UserList";
}

<link rel="stylesheet" type="text/css" href="~/Easy-UI/easyui/1.3.4/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="~/Easy-UI/css/wu.css" />
<link rel="stylesheet" type="text/css" href="~/Easy-UI/css/icon.css" />
<script type="text/javascript" src="~/Easy-UI/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="~/Easy-UI/easyui/1.3.4/jquery.easyui.min.js"></script>
<script type="text/javascript" src="~/Easy-UI/easyui/1.3.4/locale/easyui-lang-zh_CN.js"></script>

<h2>UserList</h2>

<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-add" onclick="submitcap()">添加用户</a>
<input class="easyui-textbox" name="loan_Contacts" data-options="prompt:'请输入部门名称查询...',validType:'txtname'" style="width:300px;height:24px">
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-zoom" onclick="submitcap()">搜索</a>

<table id="tt" class="easyui-datagrid" style="height:auto;">
    <thead>
        <tr>
            <th field="name1" width="70">ID</th>
            <th field="name2" width="120">员工姓名</th>
            <th field="name3" width="200">员工账户</th>
            <th field="name4" width="90">联系电话</th>
            <th field="name5" width="140">加入时间</th>
            <th field="name6" width="100">是否已启用</th>
            <th field="name6" width="100">操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var a in Model)
        {
            <tr>
                <td>@a.users_Id</td>
                <td>@a.users_Name</td>
                <td>@a.users_Account</td>
                <td>@a.users_TEL</td>
                <td>@a.users_CreateTime</td>
                <td>2222</td>

                @if (a.users_IsState == 0)
                {
                    <td field="name6"><a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-add">启用</a></td>
                }
                @if (a.users_IsState == 1)
                {
                    <td field="name6"><a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-add">停用</a></td>
                }
            </tr>
        }
    </tbody>
</table>
